package com.fileshare.web.dao;

import com.fileshare.web.dao.base.SequenceGenerater;
import com.fileshare.web.entity.FileResource;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface FileResourceRepository extends SequenceGenerater<FileResource> {
    void save(FileResource fileResource);

    void update(FileResource resource);

    @Override
    FileResource findBySeq(String seq);

    List<FileResource> findByArticleSeq(String articleSeq);
}
